package cn.stylefeng.guns.sys.modular.interfaceapproval.mapper;

import cn.stylefeng.guns.sys.modular.interfaceapproval.entity.Interfaceapproval;
import cn.stylefeng.guns.sys.modular.interfaceapproval.model.params.InterfaceapprovalParam;
import cn.stylefeng.guns.sys.modular.interfaceapproval.model.result.InterfaceapprovalResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 接口审批列表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-08-31
 */
public interface InterfaceapprovalMapper extends BaseMapper<Interfaceapproval> {

    /**
     * 获取列表
     *
     * @author author
     * @Date 2020-08-31
     */
    List<InterfaceapprovalResult> customList(@Param("paramCondition") InterfaceapprovalParam paramCondition);

    /**
     * 获取map列表
     *
     * @author author
     * @Date 2020-08-31
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") InterfaceapprovalParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author author
     * @Date 2020-08-31
     */
    Page<InterfaceapprovalResult> customPageList(@Param("page") Page page, @Param("paramCondition") InterfaceapprovalParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author author
     * @Date 2020-08-31
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") InterfaceapprovalParam paramCondition);


    /**
     * 批准
     *
     * @author author
     * @Date 2020-09-01
     */
    Integer Approve(@Param("paramCondition") Integer paramCondition);


    /**
     * 驳回
     *
     * @author author
     * @Date 2020-09-01
     */
    Integer Reject(@Param("paramCondition") Integer paramCondition);
}
